<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" media="screen" type="text/css" href="__THEMES__/style/layout.css" />
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
		<script type="text/javascript" src="__JS__/jQuery/plugin/alertbox.js"></script>
		<script type="text/javascript">
			$(function(){
				
            });
		</script>
		<style type="text/css">
			table td		{ border:0; padding:7px 5px; }
		</style>
	</head>
	<body>
		<ul class="act_this">
			<li class="this">应用授权</li>
			<li><a href="{:U('module',array('groupId'=>$_GET['groupId']))}">模块授权</a></li>
			<li><a href="{:U('action',array('groupId'=>$_GET['groupId']))}">操作授权</a></li>
		</ul>
		<div class="a_table" style="position:relative;top:-1px;_top:-2px;">
		<form method="post" action="__URL__/setApp">
			<input type="hidden" name="groupId" VALUE="{$Think.get.id}" >
			<input type="hidden" name="module" value="Node">
			<table class="form_table" width="100%">
				<tr>
					<td></td>
					<td></td>
				</tr>
				<tr>
					<td align="right" width="60">当前组</td>
					<td align="left">
						<select name="groupId" change="location.href='{:U('app')}&groupId='+this.options[this.selectedIndex].value;" class="input_text" style="width: auto;">
							<option value="">选择组</option>
							<php>foreach($groupList as $key=>$val){</php>
							<option value="{$key}"<php>if($key == $selectGroupId){</php> selected="selected"<php>}</php>>{$val}</option>
							<php>}</php>
						</select>
					</td>
				</tr>
				<tr>
					<td></td>
					<td align="left" style="line-height: 24px;">
						<php>foreach($appList as $keys=>$vals){</php>
						<input type="checkbox" name="groupAppId[]" value="{$keys}"<php>foreach($groupAppList as $g=>$v){if ($keys == $v){echo ' checked="checked"';}}</php> /> {$vals} &nbsp; 
						<php>}</php>
					</td>
				</tr>
				<tr>
					<td></td>
					<td align="left"><input type="submit" class="submit" value="提交表单" /></td>
				</tr>
				<tr>
					<td></td>
					<td></td>
				</tr>
			</table>
		</form>
		</div>
	</body>
</html>